package com.self.shriodemo.service.impl;

import com.self.shriodemo.dao.UserMapper;
import com.self.shriodemo.entity.User;
import com.self.shriodemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.PushbackReader;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public void insert(User user) {
        userMapper.insert(user);
    }

    public void del(String username) {
        userMapper.del(username);
    }
}
